package com.lucy.nepu.module.book.lib.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "著作词典新建参数")
public class BookDictCreateParams {
    @NotBlank(message = "分类编码不可为空")
    @ApiModelProperty("分类编码")
    String code;

    @NotBlank(message = "著作类型不可为空")
    @ApiModelProperty(value = "著作类型",notes = "如专著(国家一级出版社)等.")
    String bookType;

    /**
     * 著作等级
     */
    @NotBlank(message = "著作等级不可为空")
    @ApiModelProperty(value = "著作等级",notes = "A,B,C")
    String bookLevel;


    /**
     * 工作量
     */
    @NotNull(message = "工作量不可为空")
    @ApiModelProperty(value = "工作量计算系数",notes = "X工作量/万字")
    Integer workloadStandard;

    @ApiModelProperty(value = "著作词典备注")
    String remark;
}
